package com.liam.design.decorator.decoratorConcrete;

import com.liam.design.decorator.component.Drink;
import com.liam.design.decorator.decorator.DrinkDecorator;



/**
 * 具体装饰者，用于扩展ConcreteComponent
 *
 * 椰果奶茶
 */
public class Coconut extends DrinkDecorator {
    public Coconut(Drink drink) {
        super(drink);
    }

    @Override
    public String getName() {
        return super.getName() + "+椰果";
    }

    @Override
    public double getPrice() {
        return super.getPrice() + 9;
    }
}
